Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a pull request template #17281

Merged
merged 4 commits into from
Sep 4, 2024
Merged

Add a pull request template #17281

merged 4 commits into from
Sep 4, 2024

Conversation

aeisenberg
Copy link
Contributor

This PR adds a pull request template. It is sparse right now. The main goal is to remind query authors to check for autofix changes when they add new queries or update existing ones.

@aeisenberg
Copy link
Contributor Author

I'm sure we can fill this out with a lot more. For now, though, I just want a non-intrusive way to remind about autofix. Suggestions on other things to add would be appreciated.

Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably also add:

  • Add tests.
  •  Use DCA

### Pull Request checklist

- [ ] Add a change if necessary. See [the documentation](https://github.com/github/codeql/blob/main/docs/change-notes.md).
- [ ] If this PR makes any changes to `.ql`, `.qll`, or `.qhelp` files, make sure that autofixes generated based on these changes are valid. See [the documentation](https://github.com/github/codeql-team/blob/main/docs/best-practices/validating-autofix-for-query-changes.md) (internal access required).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- [ ] If this PR makes any changes to `.ql`, `.qll`, or `.qhelp` files, make sure that autofixes generated based on these changes are valid. See [the documentation](https://github.com/github/codeql-team/blob/main/docs/best-practices/validating-autofix-for-query-changes.md) (internal access required).
- [ ] If this PR makes significant changes to `.ql`, `.qll`, or `.qhelp` files, make sure that autofixes generated based on these changes are valid. See [the documentation](https://github.com/github/codeql-team/blob/main/docs/best-practices/validating-autofix-for-query-changes.md) (internal access required).

@aeisenberg aeisenberg force-pushed the aeisenberg/pr-template branch from 24415b6 to c1c9ef2 Compare August 22, 2024 19:36
@aeisenberg aeisenberg requested a review from erik-krogh August 22, 2024 19:36
erik-krogh
erik-krogh previously approved these changes Aug 25, 2024
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but Esben should also have a look.

@aeisenberg
Copy link
Contributor Author

Adding codeql Engineering Managers as reviewers since we discussed this PR this morning.

@aeisenberg aeisenberg requested a review from erik-krogh August 29, 2024 21:38
adityasharad
adityasharad previously approved these changes Aug 29, 2024
Copy link
Collaborator

@adityasharad adityasharad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo, otherwise happy with this as a starting point we can refine over time.

.github/pull_request_template.md Outdated Show resolved Hide resolved
erik-krogh
erik-krogh previously approved these changes Aug 30, 2024
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. But Esben should still have a look.

@oscarsj
Copy link
Contributor

oscarsj commented Aug 30, 2024

mentioning @esbena in case this was lost in the notifications maelstrom

@aeisenberg
Copy link
Contributor Author

I'll keep this open until Tuesday so I can give others a chance to review.


#### All query authors

- [ ] Add a change note if necessary. See [the documentation](https://github.com/github/codeql/blob/main/docs/change-notes.md) in this repository.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent style. I'm not going to discuss which of the two styles that is preferable.

Suggested change
- [ ] Add a change note if necessary. See [the documentation](https://github.com/github/codeql/blob/main/docs/change-notes.md) in this repository.
- [ ] Change notes are added if necessary. See [the documentation](https://github.com/github/codeql/blob/main/docs/change-notes.md) in this repository.

This matches the declarative style of the other bullets, especially "QL tests are added..." one.

Comment on lines 12 to 13
- [ ] If this PR makes significant changes to `.ql`, `.qll`, or `.qhelp` files, make sure that autofixes generated based on these changes are valid. See [the documentation](https://github.com/github/codeql-team/blob/main/docs/best-practices/validating-autofix-for-query-changes.md) (internal access required).
- [ ] Test your changes [at scale](https://github.com/github/codeql-dca/) (internal access required).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two bullets might need a reformulation to match the style above.

@aeisenberg aeisenberg requested a review from RasmusWL September 3, 2024 15:30
@aeisenberg aeisenberg merged commit c86b579 into main Sep 4, 2024
6 checks passed
@aeisenberg aeisenberg deleted the aeisenberg/pr-template branch September 4, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants